<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="<?php $this->options->charset(); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>
        <?php $this->archiveTitle([
        'category' => _t('分类 %s 下的文章'),
        'search'   => _t('包含关键字 %s 的文章'),
        'tag'      => _t('标签 %s 下的文章'),
        'author'   => _t('%s 发布的文章')
    ], '', ' - '); ?>
    <?php $this->options->title(); ?>
    </title>
    <link rel="canonical" href="<?php $this->options->siteUrl(); ?>">
    <meta name="title" content="<?php $this->options->title(); ?>">
    <meta name="description" content="<?php echo $this->options->description(); ?>">
    <link rel="alternate" type="application/atom+xml" href="<?php $this->options->siteUrl(); ?>feed/">
    <link rel="shortcut icon" type="image/svg+xml" href="<?php $this->options->logoUrl() ?>">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-icons/1.8.1/font/bootstrap-icons.css">
    <link href="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/5.1.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ENjdO4Dr2bkBIFxQpeoYz1HIcZmJtFqF799XJ0LQ6UhbXD+6Gk6Q59NpYb7dYc3lNf" crossorigin="anonymous">
    <link rel="stylesheet" href="<?php $this->options->themeUrl('style.css'); ?>">

    <?php if (method_exists($this, 'header')): ?>
        <?php $this->header(); ?>
    <?php endif; ?>
</head>

<body class="bg-light">
<header class="bg-primary text-white text-center py-3" >
    <div class="container" >
    <a href="/">
        <h1 class="mb-0" ><?php $this->options->title(); ?></h1>
    </a>
    <br><small><?php $this->options->description(); ?></small>
    <hr><a  class="nav-link text-white"
    href="<?php $this->options->siteUrl(); ?>"><?php _e('首页'); ?></a> 
    
    <?php // 分类页面输出
    $this->widget('Widget_Metas_Category_List')->to($categories);
    while ($categories->next()): ?>
        <a class="nav-link text-white" 
        href="<?php $categories->permalink(); ?>" 
        title="<?php $categories->name(); ?>">
            <?php $categories->name(); ?>
        </a>
    <?php endwhile;  // 分类页面输出  ?> 
    <?php \Widget\Contents\Page\Rows::alloc()->to($pages); ?>
       <?php while ($pages->next()): ?>
           <a<?php if ($this->is('page', $pages->slug)): ?> <?php endif; ?> href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a>
       <?php endwhile; ?>
    <hr>
        
    
    </div>
    </header>
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/5.1.3/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+PoYy1KxsFvXqNl7Vb6gY5JhLr5g" crossorigin="anonymous"></script>
</body>
</html>